package com.zmzncs.shop.common.util;

import com.zmzncs.shop.common.exception.AuthorizeException;
import com.zmzncs.shop.common.exception.BusinessException;
import com.zmzncs.shop.common.exception.ParamException;

public class ExceptionUtil {

    /**
     *  认证异常
     */
    public static void authorizeException(String message) {
        throw new AuthorizeException(message);
    }


    /**
     *  业务异常
     */
    public static void businessException(String message) {
        throw new BusinessException(message);
    }

    /**
     *  参数校验异常
     */
    public static void paramException(String message) {
        throw new ParamException(message);
    }

}
